public class MulCatchTest{
public static void main(String []args){
int a[]=new int[2];
// int a[]=new int[1] ;
	   int n=a.length;
	   int x;
	   a[0]=10;
	   try{
	           for(int i=0;i<=n;i++){
	                   x=100/a[i];	
System.out.println("100/a["+i+"]="+x);
	            }
}catch(ArithmeticException e){
	            System.out.println("Divided by zero!");
	   }catch(ArrayIndexOutOfBoundsException e){
	            System.out.println("Array Index Out Of Bounds Exception!");
	   }
}
}